Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--com.pacist.diamonds.BezelPanel
Field Summary | |
static int | IN
Border points inwards. |
int | innerShadow
Type of shadow for the inner region. |
java.awt.Insets | margins
Margins for the BezelPanel. |
static int | NONE
No border. |
static int | OUT
Border points outwards. |
int | outerShadow
Type of shadow for the outer region. |
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
BezelPanel()
Creates and initializes a new BezelPanel object with default shadow (OUT) and default insets. |
|
BezelPanel(int shadow)
Creates and initializes a new BezelPanel object with the specified shadow and default insets. |
|
BezelPanel(java.awt.Insets margins,
int shadow)
Creates and initializes a new BezelPanel object with the specified insets and shadow. |
|
BezelPanel(int innerShadow,
int outerShadow)
Creates and initializes a new BezelPanel object with the specified inner and outer shadow, and default insets. |
|
BezelPanel(java.awt.Insets margins,
int innerShadow,
int outerShadow)
Creates and initializes a new BezelPanel object with the specified inner and outer shadow, and insets. |
Method Summary | |
int | getInnerShadow()
Gets the inner shadow of the BezelPanel. |
java.awt.Insets | getInsets()
Gets the insets for the BezelPanel. |
int | getOuterShadow()
Gets the outer shadow of the BezelPanel. |
java.awt.Insets | insets()
Deprecated. |
void | paint(java.awt.Graphics g)
This method is called to repaint the BezelPanel. |
void | setInnerShadow(int innerShadow)
Sets the inner shadow of the BezelPanel. |
void | setInsets(java.awt.Insets margins)
Sets the insets for the BezelPanel. |
void | setOuterShadow(int outerShadow)
Sets the outer shadow of the BezelPanel. |
void | setShadow(int shadow)
Sets both the inner and outer shadow to the same value. |
Methods inherited from class java.awt.Panel | |
addNotify |
Methods inherited from class java.awt.Container | |
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, paramString, preferredSize, printComponents, print, processContainerEvent, processEvent, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component | |
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int IN
public static final int OUT
protected java.awt.Insets margins
protected int innerShadow
protected int outerShadow
Constructor Detail |
public BezelPanel()
public BezelPanel(int shadow)
shadow
- The type of shadow to be used for both the inner and outer shadow.public BezelPanel(java.awt.Insets margins, int shadow)
margins
- The margins to be used for this BezelPanel.
shadow
- The type of shadow to be used for both the inner and outer shadow.public BezelPanel(int innerShadow, int outerShadow)
innerShadow
- The type of shadow to be used for the inner shadow.
outerShadow
- The type of shadow to be used for the outer shadow.public BezelPanel(java.awt.Insets margins, int innerShadow, int outerShadow)
margins
- The margins to be used for this BezelPanel.
innerShadow
- The type of shadow to be used for the inner shadow.
outerShadow
- The type of shadow to be used for the outer shadow.Method Detail |
public void paint(java.awt.Graphics g)
g
- The graphics context to use for painting.public void setInsets(java.awt.Insets margins)
margins
- The margins to be used for this BezelPanel.public java.awt.Insets getInsets()
public java.awt.Insets insets()
getInsets()
.public void setInnerShadow(int innerShadow)
innerShadow
- The type of shadow to be used for the inner shadow.public int getInnerShadow()
public void setOuterShadow(int outerShadow)
outerShadow
- The type of shadow to be used for the outer shadow.public int getOuterShadow()
public void setShadow(int shadow)
shadow
- The type of shadow to be used for both the inner and outer shadow.Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |